🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / model / src / commonMain / kotlin / org / meshtastic / core / model / service / ServiceAction.kt
Displaying Raw • Download
core/model/src/commonMain/kotlin/org/meshtastic/core/model/service/ServiceAction.kt 3c7e1266f819f90df2bfca6717cd1df0414d6c3a (3c7e1266) Text, 2.00 KB
T8b949e/*
* Copyright (c) 2025-2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.model.service
Tff7b72import T7ee787kotlinx.coroutines.CompletableDeferred
Tff7b72import T7ee787org.meshtastic.core.model.Node
Tff7b72import T7ee787org.meshtastic.proto.SharedContact
Tff7b72sealed Tff7b72class T56d364ServiceAction Tb4b4b4{
Tff7b72data Tff7b72class T56d364GetDeviceMetadataTb4b4b4(Tff7b72val Te6edf3destNumTb4b4b4: Tffa657IntTb4b4b4) Tb4b4b4: Te6edf3ServiceActionTb4b4b4(Tb4b4b4)
Tff7b72data Tff7b72class T56d364FavoriteTb4b4b4(Tff7b72val Te6edf3nodeTb4b4b4: Te6edf3NodeTb4b4b4) Tb4b4b4: Te6edf3ServiceActionTb4b4b4(Tb4b4b4)
Tff7b72data Tff7b72class T56d364IgnoreTb4b4b4(Tff7b72val Te6edf3nodeTb4b4b4: Te6edf3NodeTb4b4b4) Tb4b4b4: Te6edf3ServiceActionTb4b4b4(Tb4b4b4)
Tff7b72data Tff7b72class T56d364MuteTb4b4b4(Tff7b72val Te6edf3nodeTb4b4b4: Te6edf3NodeTb4b4b4) Tb4b4b4: Te6edf3ServiceActionTb4b4b4(Tb4b4b4)
Tff7b72data Tff7b72class T56d364ReactionTb4b4b4(Tff7b72val Te6edf3emojiTb4b4b4: Tffa657StringTb4b4b4, Tff7b72val Te6edf3replyIdTb4b4b4: Tffa657IntTb4b4b4, Tff7b72val Te6edf3contactKeyTb4b4b4: Tffa657StringTb4b4b4) Tb4b4b4: Te6edf3ServiceActionTb4b4b4(Tb4b4b4)
Tff7b72data Tff7b72class T56d364ImportContactTb4b4b4(Tff7b72val Te6edf3contactTb4b4b4: Te6edf3SharedContactTb4b4b4) Tb4b4b4: Te6edf3ServiceActionTb4b4b4(Tb4b4b4)
T8b949e/**
* Sends a shared contact (identity + public key) to the firmware's NodeDB.
*
* The [result] deferred is completed with `true` when the radio acknowledges the admin packet, or `false` on
* timeout/failure. Callers that need to guarantee the contact is stored before sending a subsequent DM should
* `await()` this deferred.
*
* Not a data class: [result] is a [CompletableDeferred] with identity-based equality that would break data class
* equals/hashCode/copy semantics.
*/
Tff7b72class T56d364SendContactTb4b4b4(Tff7b72val Te6edf3contactTb4b4b4: Te6edf3SharedContactTb4b4b4) Tb4b4b4: Te6edf3ServiceActionTb4b4b4(Tb4b4b4) Tb4b4b4{
Tff7b72val Te6edf3resultTb4b4b4: Te6edf3CompletableDeferredTff7b72<Tffa657BooleanTff7b72> Tff7b72= Te6edf3CompletableDeferredTb4b4b4(Tb4b4b4)
Tb4b4b4}
Tb4b4b4}
Served by rngit 1.5.2 - Generated in 0.11s